const  editor = {
    models: {
        1 : {
            id: 1,
            icon : 'mobile',
            title: '手机',
            width: '414px',
            active : false
        },
        2 : {
            id: 2,
            icon : 'pad',
            title: '平板',
            width: '768px',
            active : false
        },
        3 : {
            id: 3,
            icon : 'pc',
            title: '电脑',
            width: "calc(100% - 22px)",
            active : true
        },
    },
    menu: [
        {
            name : 'timu',
            title : "题目",
            icon  : "icon-app",
            path  : "/editor/"
        },
        {
            name : 'zhuti',
            title : "主题",
            icon  : "icon-theme",
            path  : "/editor/theme"
        },
        {
            name : 'shezhi',
            title : "设置",
            icon  : "icon-setting",
            path  : "/editor/setting"
        },

    ],
    steps: {
        1 : {
            id: 1,
            icon : 'prev',
            title: '撤销',
            active : false
        },
        2 : {
            id: 1,
            icon : 'next',
            title: '重做',
            active : false
        }
    },
    getCurrentData(){
        let hc = JSON.parse(localStorage.getItem('editor_temp'));

        if(hc) {
            return hc;
        }else {
            return  {
                list: [],
                config : {
                    labelWidth: 100,
                    labelPosition: 'right',
                    size: 'small'
                },
            }
        }
    }
};

export default editor;